<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsBannerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //商品轮播图
        Schema::create('goods_banner', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('img_id')->default(0)->comment('banner图图片id');
            $table->integer('good_id')->default(0)->comment('商品id');
            $table->integer('sort')->default(0)->comment('排序 数值越小越靠前');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
